package com.ucode.cgms.mapper;

import com.ucode.model.cgms.CgmsCompanionOfflineOrderReport;
import com.ucode.springboot.starter.mybatis.core.base.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.time.LocalDateTime;

/**
 * 陪玩线下订单报备Mapper接口
 * @Author: liliang
 * @Date: 2025/5/11 14:15
 * @Version: 1.0
 */
@Mapper
public interface CgmsCompanionOfflineOrderReportMapper extends BaseMapper<CgmsCompanionOfflineOrderReport, Long> {

    /**
     * 审核报备
     * @param id 报备ID
     * @param auditState 审核状态
     * @param processorId 处理人ID
     * @param processorType 处理人类型
     * @param processTime 处理时间
     * @param processRemark 处理备注
     * @return 影响行数
     */
    public int auditReport(@Param("id") Long id, 
                    @Param("auditState") Integer auditState, 
                    @Param("processorId") Long processorId,
                    @Param("processorType") Integer processorType,
                    @Param("processTime") LocalDateTime processTime,
                    @Param("processRemark") String processRemark);
} 